const express = require('express');
// 引入你指定路径的天气接口
const weatherRouter = require('./pages/index/tabBar/api/weather.js');

const app = express();
const port = 3000;

// 挂载天气接口路由
app.use('/api/weather', weatherRouter);

app.listen(port, () => {
  console.log(`后端服务启动：http://localhost:${port}`);
});